// 公告相关类型定义

// 通用响应类型
export interface ResponseData {
  code: number
  message: string
  data?: any
}

// 公告项
export interface AnnouncementItem {
  id: number
  title: string
  content: string
  publisherId: number
  publisherName: string
  viewCount: number
  status: number
  createTime: string
  updateTime: string
}

// 发布公告表单
export interface PublishAnnouncementForm {
  title: string
  content: string
}

// 公告列表查询参数
export interface AnnouncementQueryParams {
  page: number
  size: number
  keyword?: string
}

// 公告列表响应
export interface AnnouncementListResponse extends ResponseData {
  data: {
    records: AnnouncementItem[]
    total: number
    page: number
    pageSize: number
  }
}

// 公告详情响应
export interface AnnouncementDetailResponse extends ResponseData {
  data: AnnouncementItem
}

